home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1098 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.2 KB

  1. From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
  2. Message-ID: <KANZE.96Apr15211326@slsvgqt.lts.sel.alcatel.de>
  3. X-Original-Date: 15 Apr 1996 19:13:26 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 15 Apr 96 20:46:13 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: references and ellipsis
  9. In-Reply-To: fjh@munta.cs.mu.OZ.AU's message of 14 Apr 1996 15:08:25 GMT
  10. Organization: GABI Software, Sarl.
  11. References: <4kop8j$ino@vishnu.jussieu.fr> <4kpd3v$2fb@engnews1.Eng.Sun.COM> <4kr1p3$67g@mulga.cs.mu.OZ.AU>
  12. Apparently-To: std-c++@ncar.ucar.edu
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMXK1yeEDnX0m9pzZAQEjkgF+PWZd72rnYU0+B4yqpLnnRF3Q9O0fgCk3
  15.     ZOy0vGXMBK8++GNmM2uf3VGTDrbN2L8c
  16.     =075m
  17.  
  18. In article <4kr1p3$67g@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus
  19. Henderson) writes:
  20.  
  21. |> clamage@Eng.Sun.COM (Steve Clamage) writes:
  22.  
  23. |> >According the draft standard, the results of using a reference
  24. |> >type as the last pararmeter before the ellipsis (...) are
  25. |> >undefined. See section 18.7 "Other runtime support" [lib.support.runtime].
  26.  
  27. |> Is there any good reason why this has undefined behaviour rather than
  28. |> being ill-formed code?  Surely this should be very easy for implementations
  29. |> to detect and diagnose.
  30.  
  31. Hysterica^H^H^H^H^H^H^Horical reasons, no doubt.  Declare the last
  32. parameter a char in C, and you also get undefined behavior.
  33.  
  34. And it's surely no more difficult to diagnose a double underscore (and
  35. at least one compiler does), which is also `undefined behavior'.
  36. -- 
  37. James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
  38. GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
  39. Conseils, itudes et rialisations en logiciel orienti objet --
  40.                 -- A la recherche d'une activiti dans une region francophone
  41. ---
  42. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  43. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  44. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  45. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  46. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  47.